﻿using MvcMall.AdminPortal.Controllers.SysSettings.ViewModels;
using MvcMall.Core.Domains;
using MvcMall.Framework.Mapper;

namespace MvcMall.AdminPortal.Controllers.SysSettings.Mappers
{
    public class SysSettingsModelMapper : BaseMapper<SysSetting, SysSettingModel>, IMapper<SysSetting, SysSettingModel>
    {
        #region IMapper<User,UserViewModel> Members

        public override SysSettingModel MapFrom(SysSetting input)
        {
            var viewModel = base.MapFrom(input);
            if (input!=null)
            {
                viewModel.SysSettingId = input.Id;
            }
            return viewModel;
        }

        #endregion
    }
}
